//
//  ZYPlayerViewController.h
//  A Learning Walk
//
//  Created by 张勇 on 16/6/17.
//  Copyright © 2016年 战斗民族. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DetailListModel.h"
#import "STKAudioPlayer.h"

@interface ZYPlayerViewController : UIViewController

+(instancetype)shareZYPlayerViewController;

@property(nonatomic,retain)DetailListModel *model;
@property(nonatomic,retain)NSMutableArray *AVArray;//所有歌曲链接
@property (retain, nonatomic) IBOutlet UISlider *progressSlider;

@property (retain, nonatomic) IBOutlet UIImageView *userImageV;
@property (retain, nonatomic) IBOutlet UILabel *userL;
@property (retain, nonatomic) IBOutlet UIButton *playListB;
@property (retain, nonatomic) IBOutlet UIButton *goB;
@property (retain, nonatomic) IBOutlet UIButton *timingB;

@property (retain, nonatomic) IBOutlet UIImageView *BGImageV;
@property (retain, nonatomic) IBOutlet UILabel *timeNowL;
@property (retain, nonatomic) IBOutlet UIButton *backB;
@property (retain, nonatomic) IBOutlet UIButton *playB;

@property (retain, nonatomic) IBOutlet UILabel *timeTotleL;
- (IBAction)progressSlider:(id)sender;
- (IBAction)playListB:(UIButton *)sender;
- (IBAction)backB:(UIButton *)sender;
- (IBAction)playB:(UIButton *)sender;
@property (retain, nonatomic) IBOutlet UIVisualEffectView *effectView;

- (IBAction)timingB:(UIButton *)sender;

- (IBAction)GoButton:(UIButton *)sender;

@property(nonatomic,retain)STKAudioPlayer *player;
@property(nonatomic,retain)NSTimer *timer;


@property(nonatomic,retain)NSMutableArray *allMusicArray;//存放上一页列表所有数据
@property(nonatomic,assign)NSInteger indexRow;//记录上一页点击cell的下标

@end
